home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-27 | 1.7 KB | 45 lines | [TEXT/ttxt] |
- #SurfWriter-specific event functions
-
- #Event functions can be specified in any of these commands:
- # <Standard Button>, <3D Button>, <Define Nav Button>,
- # <Hot Object>, <Hot Text>, <Hot Rectangle>,
- # <On Panel Show>, <On Panel Hide>, <On Panel Create>, <On Panel Destroy>
-
- #You can use event functions that you define yourself or use any of the
- # built-in event functions (such as DoAppleScript or LaunchNewSequenceNewWindow)
- #This guide file mainly uses DoAppleScript,
- # but also defines some of its own event functions.
-
- #You typically define an event function for use in
- # Continue panels to perform an action for the user;
- # in this case you typically specify the event function in <On Panel Show> commands
-
- # *******************************************************
- #examples of how to define an event function
-
- #send an Apple event with event class 'aevt' and event ID 'xxxx'
- # to the application with signature 'WAVE'
- <Define Event> "doNothingEvent", 'WAVE', 'aevt', 'xxxx'
-
- #define event function with name "SWOpenDictionary" for the
- # application with signature 'WAVE'
- #the event class is 'aevt' and event ID is 'odoc'
- #Because this event expects only one parameter (the direct parameter)
- # and the keyword for this parameter is other than 'IOPT', the
- # fifth parameter (data for the IOPT parameter) is unused.
- #This event function uses the sixth parameter to specify the
- # keyword for the direct object ('----') and the caller of this
- # event function provides the data for the direct object.
- #When the SurfWriter application receives this type of event, it opens
- # the document (a dictionary) specified by the caller
- <Define Event> "SWOpenDictionary", 'WAVE', 'aevt', 'odoc' ,,'----'
-
- #example use:
- #<On Panel Show> SWOpenDictionary("Site Dictionary")
-
-
-
-
-
-
-